package com.example.qrwebsocketdemo.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name="user_token")
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserToken {

    @Id
    private String uuid;
    @Column(name = "user_id")
    private Integer userId;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "login_time")
    private Date loginTime;
    private String state;

}
